#ifndef NEWSSERVER_H
#define NEWSSERVER_H


#include "server.h"
#include "connection.h"
#include "memdatabase.h"
#include "drivedatabase.h"
#include "messagehandler.h"
#include "database.h"
#include "connectionclosedexception.h"

#include <iostream>
#include <string>
#include <cstdlib>

using namespace std;
using namespace client_server;

class newsserver {
	public:
		newsserver(database_interface *db, int in_port);
		~newsserver();
		void run();

	private:
		int port;
		database_interface* dbp;
		Server server;
		MessageHandler mh;
	
};
#endif
